package com.ruoyi.quartz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 淘宝配置对象 tb_config
 * 
 * @author ab
 * @date 2025-07-06
 */
@Data
public class TbConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** spm */
    @Excel(name = "spm")
    private String spm;

    /** 地址 */
    @Excel(name = "地址")
    private String url;

    /** cookie */
    @Excel(name = "cookie")
    private String cookie;

    @Excel(name = "配置类型（0：淘宝 1：京东）")
    private Integer configType;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spm", getSpm())
            .append("url", getUrl())
            .append("cookie", getCookie())
            .append("createDate", getCreateDate())
            .toString();
    }
}
